package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.News;
import org.hxyjs.entity.NewsExample;
import org.hxyjs.entity.Parents;

public interface NewsMapper {
    long countByExample(NewsExample example);

    int deleteByExample(NewsExample example);

    int deleteByPrimaryKey(String nno);

    int insert(News record);

    int insertSelective(News record);

    List<News> selectByExample(NewsExample example);

    List<News> getNewsByPage(Map<String, Object> map);

    String getMaxNno();

    News selectByPrimaryKey(String nno);

    News selectNewsWithCarouselmap(String nno);

    int updateByExampleSelective(@Param("record") News record, @Param("example") NewsExample example);

    int updateByExample(@Param("record") News record, @Param("example") NewsExample example);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);
}